{include file = "styles/header.tpl"}
<script type="text/javascript" src="js/user/index.js"></script>

<div id="content" class="box">
	<h1>Mangage Holidays</h1>
	<div align="right" style="margin-top:10px; margin-bottom:10px;">
			<a href="{$smarty.const.HOST_ADMIN}/holidays/add" class="homeButton" >
				<span><strong>Add holidays</strong></span>
			</a>
	</div>	
	<table width="100%">
		<tr>
			<th>Holiday Id</th>
			<th>Holidays Date</th>
			<th>Weekday</th>
			<th>Description</th>
			<th class="last">Action</th>
		</tr>
		{section name=i loop=$arrResult}
		<tr {if $smarty.section.i.index%2!=0}class="bg"{/if}>
			<td>{$arrResult[i].id}</td>
			<td>{$arrResult[i].date}</td>
			<td>{$arrResult[i].weekday}</td>
			<td>{$arrResult[i].description}</td>
			<td>
				<a href="{$smarty.const.HOST_ADMIN}/holidays/add/?intId={$arrResult[i].id}">Edit</a> |
				<a href="{$smarty.const.HOST_ADMIN}/holidays/delete/?intId={$arrResult[i].id}">Delete</a>
			</td>
		</tr>
		{/section}
	</table>
</div>
<div id="currenttab" class="category_holidays" style="display: none;">
{include file = "styles/footer.tpl"}